package com.cms.controller;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.cms.entity.User;

/**
*@author:gang
*@version:
**/
@Controller
@RequestMapping("/test")
public class FtlTest {
	
	String name = "ant-black";
	String id="11111";
	int age = 22;
	Date date = new Date();
	
	User user = new User();
	
	HashMap<String, String> ftlMap = new HashMap<String, String>();
	LinkedList<String> ftlList = new LinkedList<String>();
	String[][] arry={{"S1","S2","S3"},{"S4","S5","S6"}};
	
	@RequestMapping("/ftltest")
	public ModelAndView ftlTest(){
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.addObject("name", name);
		modelAndView.setViewName("ftltest");
		return modelAndView;
	
		
		
		
	} 
}
